/**
 * 订单操作
 */
export const orderNavbar = [
  { id: 'all', name: '全部订单', icon: 'icon-qpdingdan', count: 0 },
  { id: 'payment', name: '待支付', icon: 'icon-daifukuan', count: 0 },
  { id: 'delivery', name: '待发货', icon: 'icon-daifahuo', count: 0 },
  { id: 'received', name: '待收货', icon: 'icon-daishouhuo', count: 0 },
]

/**
 * 我的服务
 */
export const service = [
  {
    id: 'address',
    name: '收货地址',
    icon: 'icon-shouhuodizhi',
    type: 'link',
    url: '/pages/address/address',
  },
  {
    id: 'coupon',
    name: '领券中心',
    icon: 'icon-lingquan',
    type: 'link',
    url: '/pages/coupon/coupon',
  },
  {
    id: 'myCoupon',
    name: '优惠券',
    icon: 'icon-youhuiquan',
    type: 'link',
    url: '/pages/my-coupon/my-coupon',
  },
  {
    id: 'help',
    name: '我的帮助',
    icon: 'icon-bangzhu',
    type: 'link',
    url: '/pages/help/help',
  },
  {
    id: 'contact',
    name: '在线客服',
    icon: 'icon-kefu',
    type: 'button',
    openType: 'contact',
  },
  {
    id: 'points',
    name: '我的积分',
    icon: 'icon-jifen',
    type: 'link',
    url: 'pages/points/points',
  },
  {
    id: 'refund',
    name: '退换/售后',
    icon: 'icon-shouhou',
    type: 'link',
    url: 'pages/refund/refund',
    count: 0,
  },
]

/**
 * 订单状态
 */
export const orderStatus = {
  NORMAL: { name: '进行中', value: 10 },
  CANCELLED: { name: '已取消', value: 20 },
  APPLY_CANCEL: { name: '待取消', value: 21 },
  COMPLETED: { name: '已完成', value: 30 },
}

/**
 * 发货状态
 */
export const deliveryStatus = {
  NOT_DELIVERED: { name: '未发货', value: 10 },
  DELIVERED: { name: '已发货', value: 20 },
  PARTIALLY_DELIVERED: { name: '部分发货', value: 30 },
}

/**
 * 付款状态
 */
export const payStatus = {
  PENDING: { name: '未付款', value: 10 },
  SUCCESS: { name: '已付款', value: 20 },
}

/**
 * 收货状态
 */
export const receiptStatus = {
  NOT_RECEIVED: { name: '未收货', value: 10 },
  RECEIVED: { name: '已收货', value: 20 },
}
